/**
 * 生产计划 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-08-08 15:03:13
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const prpordApi = {

    /**
     * 分页查询  @author  AKITA
     */
    queryPage: (param) => {
        return postRequest('/prpord/queryPage', param);
    },
    queryPageUnexecut: (param) => {
        return postRequest('/prpord/queryPageUnexecut', param);
    },

    /**
     * 增加  @author  AKITA
     */
    add: (param) => {
        return postRequest('/prpord/add', param);
    },

    /**
     * 修改  @author  AKITA
     */
    update: (param) => {
        return postRequest('/prpord/update', param);
    },


    /**
     * 删除  @author  AKITA
     */
    delete: (id) => {
        return getRequest(`/prpord/delete/${id}`);
    },

    /**
     * 批量删除  @author  AKITA
     */
    batchDelete: (idList) => {
        return postRequest('/prpord/batchDelete', idList);
    },

    info: (id) => {
        return getRequest(`/prpord/info/${id}`);
    },

    infoUnexecute: (id) => {
        return getRequest(`/prpord/infoUnexecute/${id}`);
    },
    infoUnexecuteBack: (id) => {
        return getRequest(`/prpord/infoUnexecuteBack/${id}`);
    },

    breakDown: (id) => {
        return postRequest(`/prpord/breakDown`, id);
    },

    queryList: (param) => {
        return postRequest('/prpord/queryList', param);
    }


};
